package com.gushen.library;

import android.graphics.Bitmap;

public class WatermarkConfig {
    public static final int WATERMARK_TYPE_BITMAP = 1;
    //内部不支持自动换行
    public static final int WATERMARK_TYPE_TEXT = 2;

    private int waterMarkType;
    private int leftMargin;
    private int topMargin;
    private Bitmap bitmapWatermark;
    private String textWatermark;
    private int textSize;
    private int textColor;

    public void setWaterMarkType(int waterMarkType) {
        this.waterMarkType = waterMarkType;
    }
    public int getWaterMarkType() {
        return waterMarkType;
    }

    public void setLeftMargin(int leftMargin) {
        this.leftMargin = leftMargin;
    }

    public void setBitmapWatermark(Bitmap bitmapWatermark) {
        this.bitmapWatermark = bitmapWatermark;
    }

    public void setTextColor(int textColor) {
        this.textColor = textColor;
    }

    public void setTextSize(int textSize) {
        this.textSize = textSize;
    }

    public void setTextWatermark(String textWatermark) {
        this.textWatermark = textWatermark;
    }


    public void setTopMargin(int topMargin) {
        this.topMargin = topMargin;
    }

    public Bitmap getBitmapWatermark() {
        return bitmapWatermark;
    }

    public int getLeftMargin() {
        return leftMargin;
    }

    public int getTextColor() {
        return textColor;
    }

    public int getTextSize() {
        return textSize;
    }

    public int getTopMargin() {
        return topMargin;
    }

    public String getTextWatermark() {
        if (textWatermark == null){
            return "";
        }
        return textWatermark;
    }

}
